<layout name='Layout/layout_page' />
	<ol class="breadcrumb">
		<li><a href="<{:U('Yongjin/index')}>">佣金记录</a></li>
      	<li class="active">列表</li>
    </ol>
	
	
	<form id="ajaxForm" action="<{:U('Yongjin/save')}>" method="post" class="form-horizontal form-validata">
		<div class="form-group">
			<label class="col-md-1 control-label" for="name">发放月份</label>
			<div class="col-md-10">
				<div class="form-control-static"><{$year}>年<{$month}>月</div>
			</div>
		</div>		
	
		<div class="form-group">
			<div class="col-md-11 col-md-offset-1">
				<button type="submit" id="subBtn" class="btn btn-info" onClick="dis();">开始生成佣金</button>
			</div>
		</div>
		<input type="hidden" name="createYear" value="<{$year}>">
		<input type="hidden" name="createMonth" value="<{$month}>">
	</form>

<input type="hidden" id="menu_action" value="yongjin" />
<script>
function dis(){
	if(!confirm('该操作将不可逆，确定要发放吗？')){
		return false;
	}else{
		$("#ajaxForm").submit();
		$("#subBtn").html('佣金生成中...');
  		$("#subBtn").attr('disabled',"true");
	}  
}
</script>